package club.janna.hello.session.dao;

import club.janna.hello.session.Session;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * 基于内存方式实现的Session 数据访问对象接口
 * Created by guopanbo on 18/2/7.
 */
public class MemorySessionDao implements SessionDao {

    private MemorySessionDao() {}

    private Map<String, Session> data = new HashMap<>();

    @Override
    public Session getSessionById(String id) {
        return null;
    }

    @Override
    public Set<String> listKeys() {
        return null;
    }

    @Override
    public Set<Session> getSessions() {
        return null;
    }

    @Override
    public void putSession(String id, Session session) {

    }

    @Override
    public void putAll(Map<String, Session> map) {

    }

    @Override
    public void remove(String id) {

    }
}
